﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace QuanLyThuNgan
{
    public partial class rpt_PhieuPhatThuoc : DevExpress.XtraReports.UI.XtraReport
    {
        public rpt_PhieuPhatThuoc()
        {
            InitializeComponent();
        }
        public string tendonvi, sophieu, sonv, tenbn, gioitinh, tuoi, doituong, diachi, tungay, denngay, bschid;
        public dsInThuTien ds = new dsInThuTien();
        private void rpt_PhieuPhatThuoc_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            xrDonvi.Text = tendonvi;
            xrSoPhieu.Text = sophieu;
            xrSoNhapVien.Text = sonv;
            xrTenBenhNhan.Text = tenbn;
            xrGioiTinh.Text = gioitinh;
            xrTuoi.Text = tuoi;
            xrDoiTuong.Text = doituong;
            xrDiaChi.Text = diachi;
            xrTuNgay.Text = tungay;
            xrDenNgay.Text = denngay;
            xrBacSi.Text = bschid;
            xrNgay.Text = Uit.it_Date.CurrentDate("dd/MM/yyyy");
            xrngay1.Text = Uit.it_Date.CurrentDay() + " Tháng " + Uit.it_Date.CurrentMonth() + " Năm " + Uit.it_Date.CurrentYear() + ".";
            this.DataSource = ds;

        }

    }
}
